<h1>Editing product</h1>

<%= error_messages_for :product %>

<% form_for(:product, :url => product_path(@product), :html => { :method => :put }) do |f| %>
  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', product_path(@product) %> |
<%= link_to 'Back', products_path %>